export type State = {
    currentStep: number,
    isPlay: boolean,
    speed: number,
}
export type LocationPoint = {latitude: number, longitude: number, [key: string]: any}
export type Trajectory = {
    alarms: LocationPoint[],
    positions: LocationPoint[],
    stops: LocationPoint[],
}
export type InitialVehiclePosition = {
    latitude: number,
    longitude: number,
    direction: number
}
export type TrackModel = {
    imei?: string,
    miningId?: number
    trajectoryData?: Trajectory
    initialVehiclePosition: InitialVehiclePosition
}
export type NewPath = {
    id: string,
    type: "low" | "normal" | "speeding",
    values: [number, number][]
}
export type TravelPath = {
    id: string,
    type: "low" | "normal" | "speeding",
    startIndex: number,
    endIndex: number,
    values: [number, number][]
}
export type StopPosition = {
    lng: number,
    lat: number,
    residenceTime: string
    startTime: string
}

export type AlarmsPosition = {
    lng: number,
    lat: number,
    startTime: string
}

export type Record = {
    position: any[]
    travelPath: TravelPath[]
    stopPosition: StopPosition[]
    alarmsPosition: AlarmsPosition[]
}


export type DrawType = 'Point' | 'LineString' | 'LinearRing' | 'Polygon' | 'MultiPoint' | 'MultiLineString'
    | 'MultiPolygon' | 'GeometryCollection' | 'Circle'